//
//  HYHotCommentView.m
//  _normal
//
//  Created by Ezra on 16/6/9.
//  Copyright © 2016年 Ezra. All rights reserved.
//

#import "HYHotCommentView.h"
#import "HYCommentItem.h"
#import "HYUserItem.h"

@interface HYHotCommentView();

@property (weak, nonatomic) IBOutlet UILabel *textLab;

@property (weak, nonatomic) IBOutlet UILabel *voiceNameLab;



@property (weak, nonatomic) IBOutlet UIView *voiceView;

@end

@implementation HYHotCommentView

-(void)setCommentItem:(HYCommentItem *)commentItem
{
    _commentItem = commentItem;
    
    
    if (commentItem.content.length) {
        
        self.textLab.text = commentItem.allContent;
        self.voiceView.hidden = YES;
    }else{
        
        self.voiceView.hidden = NO;
        self.textLab.hidden = YES;
        
        self.voiceNameLab.text = commentItem.user.username;
        
    }

}


@end
